.class public Lcom/instagram/android/login/b/bi;
.super Lcom/instagram/e/b/b;
.source "UserPasswordRecoveryFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Ljava/lang/String;

.field private b:I

.field private c:I

.field private d:I

.field private e:Landroid/widget/TextView;

.field private f:Landroid/os/Handler;

.field private g:Lcom/instagram/android/model/b/e;

.field private final h:Lcom/instagram/android/login/b/bq;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 42
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 56
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->f:Landroid/os/Handler;

    .line 59
    new-instance v0, Lcom/instagram/android/login/b/bq;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/login/b/bq;-><init>(Lcom/instagram/android/login/b/bi;Lcom/instagram/android/login/b/bj;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->h:Lcom/instagram/android/login/b/bq;

    .line 292
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/login/b/bi;)Lcom/instagram/android/model/b/e;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    return-object v0
.end method

.method private a(Landroid/view/View;Lcom/instagram/android/model/b/e;)V
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 194
    if-nez p1, :cond_0

    .line 205
    :goto_0
    return-void

    .line 199
    :cond_0
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_textview:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sget v1, Lcom/facebook/ba;->how_would_you_like_to_reset_your_password:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/login/b/bi;->b(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 203
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_profile_picture:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iget-object v1, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    invoke-virtual {v1}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/login/b/bi;Lcom/instagram/android/login/d/l;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    invoke-direct {p0, p1}, Lcom/instagram/android/login/b/bi;->b(Lcom/instagram/android/login/d/l;)V

    return-void
.end method

.method static synthetic b(Lcom/instagram/android/login/b/bi;)Lcom/instagram/android/login/b/bq;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->h:Lcom/instagram/android/login/b/bq;

    return-object v0
.end method

.method private b(Lcom/instagram/android/login/d/l;)V
    .locals 4
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 169
    sget-object v0, Lcom/instagram/android/login/b/bp;->a:[I

    invoke-virtual {p1}, Lcom/instagram/android/login/d/l;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 191
    :goto_0
    return-void

    .line 171
    :pswitch_0
    sget v0, Lcom/facebook/ba;->email_sent_short:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->b:I

    .line 172
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->email_sent:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    sget v2, Lcom/facebook/ba;->instagram_help_center:I

    invoke-virtual {p0, v2}, Lcom/instagram/android/login/b/bi;->b(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Lcom/facebook/c/i/b;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->a:Ljava/lang/String;

    .line 175
    sget v0, Lcom/facebook/ba;->sending_email:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->c:I

    .line 176
    sget v0, Lcom/facebook/ba;->email_reset_link:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->d:I

    .line 177
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_user_password_recovery_button_email_reset:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->e:Landroid/widget/TextView;

    goto :goto_0

    .line 181
    :pswitch_1
    sget v0, Lcom/facebook/ba;->sms_sent_short:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->b:I

    .line 182
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->sms_sent:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    sget v2, Lcom/facebook/ba;->instagram_help_center:I

    invoke-virtual {p0, v2}, Lcom/instagram/android/login/b/bi;->b(I)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Lcom/facebook/c/i/b;->b(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->a:Ljava/lang/String;

    .line 185
    sget v0, Lcom/facebook/ba;->sending_sms:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->c:I

    .line 186
    sget v0, Lcom/facebook/ba;->sms_reset_link:I

    iput v0, p0, Lcom/instagram/android/login/b/bi;->d:I

    .line 187
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_user_password_recovery_button_sms_reset:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->e:Landroid/widget/TextView;

    goto :goto_0

    .line 169
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method static synthetic c(Lcom/instagram/android/login/b/bi;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->e:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/login/b/bi;)I
    .locals 1
    .parameter

    .prologue
    .line 42
    iget v0, p0, Lcom/instagram/android/login/b/bi;->b:I

    return v0
.end method

.method static synthetic e(Lcom/instagram/android/login/b/bi;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/android/login/b/bi;)I
    .locals 1
    .parameter

    .prologue
    .line 42
    iget v0, p0, Lcom/instagram/android/login/b/bi;->c:I

    return v0
.end method

.method static synthetic g(Lcom/instagram/android/login/b/bi;)I
    .locals 1
    .parameter

    .prologue
    .line 42
    iget v0, p0, Lcom/instagram/android/login/b/bi;->d:I

    return v0
.end method

.method static synthetic h(Lcom/instagram/android/login/b/bi;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 42
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->f:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 75
    sget v0, Lcom/facebook/ax;->fragment_user_password_recovery:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 76
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v2, "has_valid_phone"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 77
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_sms_reset_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 83
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v2, "email_lookup"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 84
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_textview_email_alt:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 86
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_profile_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 89
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_email_reset:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/login/b/bj;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/bj;-><init>(Lcom/instagram/android/login/b/bi;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 97
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_sms_reset:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/login/b/bk;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/bk;-><init>(Lcom/instagram/android/login/b/bi;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 136
    :goto_0
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_connect_with_facebook:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/login/b/bn;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/bn;-><init>(Lcom/instagram/android/login/b/bi;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 150
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    if-eqz v0, :cond_1

    .line 151
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    invoke-direct {p0, v1, v0}, Lcom/instagram/android/login/b/bi;->a(Landroid/view/View;Lcom/instagram/android/model/b/e;)V

    :cond_1
    move-object v0, v1

    .line 154
    :goto_1
    return-object v0

    .line 109
    :cond_2
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "userid"

    invoke-virtual {v2, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/service/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;

    iput-object v0, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    .line 110
    iget-object v0, p0, Lcom/instagram/android/login/b/bi;->g:Lcom/instagram/android/model/b/e;

    if-nez v0, :cond_3

    .line 111
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v2, Lcom/facebook/ba;->try_again:I

    invoke-static {v0, v2, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 112
    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->m()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/r;->d()V

    move-object v0, v1

    .line 113
    goto :goto_1

    .line 115
    :cond_3
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_email_reset:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/login/b/bl;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/bl;-><init>(Lcom/instagram/android/login/b/bi;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 124
    sget v0, Lcom/facebook/aw;->fragment_user_password_recovery_button_sms_reset:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v2, Lcom/instagram/android/login/b/bm;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/bm;-><init>(Lcom/instagram/android/login/b/bi;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 209
    new-instance v0, Lcom/instagram/android/login/b/bo;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/bo;-><init>(Lcom/instagram/android/login/b/bi;)V

    return-object v0
.end method

.method public a(Lcom/instagram/android/login/d/l;)Lcom/instagram/android/login/d/j;
    .locals 4
    .parameter

    .prologue
    .line 159
    new-instance v0, Lcom/instagram/android/login/d/j;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/login/b/bi;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    new-instance v3, Lcom/instagram/android/login/b/bs;

    invoke-direct {v3, p0, p1}, Lcom/instagram/android/login/b/bs;-><init>(Lcom/instagram/android/login/b/bi;Lcom/instagram/android/login/d/l;)V

    invoke-direct {v0, v1, v2, v3, p1}, Lcom/instagram/android/login/d/j;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;Lcom/instagram/android/login/d/l;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 351
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 352
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 355
    iget-object v1, p0, Lcom/instagram/android/login/b/bi;->h:Lcom/instagram/android/login/b/bq;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 356
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    .line 358
    :cond_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/e/b/b;->a(IILandroid/content/Intent;)V

    .line 359
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 64
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 65
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 363
    const-string v0, "user_password_recovery"

    return-object v0
.end method

.method public e_()V
    .locals 0

    .prologue
    .line 69
    invoke-super {p0}, Lcom/instagram/e/b/b;->e_()V

    .line 70
    return-void
.end method
